<template>
  <div>
      <div class="total_warpper">
          <h3>共计：{{$store.getters.totalPrice}}</h3>
          <el-button type="success" @click="pay()">确认支付</el-button>
      </div>
  </div>
</template>

<script>
import axios from 'axios'
import myapi from '../api'
export default {
methods:{
    pay(){
        axios.post(myapi.paystate.url)
        .then(res=>{

        })
        .catch(res=>{

        })
    }
}
}
</script>

<style>
.total_warpper{
    text-align: center;
    margin-top: 30px;
}
</style>